﻿using PAP.Domain.Core.ValueObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PAP.Domain.Core.Entities
{
    public abstract class Entity<TKey>
    {
        #region "Fields"
        protected EntityState _entityState;
        protected long _version;
        #endregion

        #region "Properties"
        public virtual TKey Id { get; protected set; }
        #endregion

        #region "Methods:
        public virtual void MarkAsArchive()
        {
            _entityState = EntityState.Archive;
        }
        #endregion
    }
}
